if __name__ == '__main__':
    a=str(input())
    # print(a)
    b=len(a)
    # print(b)
    c=a[b-1]
    # print(c)
    for i in range(b-1):
        c=c+a[i]
    print(c)



